package cn.hzc.fortess.core.shiro.service;

import cn.hzc.fortess.core.shiro.ShiroUser;
import cn.hzc.fortess.system.entity.User;
import org.apache.shiro.authc.SimpleAuthenticationInfo;

import java.util.List;

public interface UserAuthService {

    User getUserByLoginName(String account);

    ShiroUser createShiroUser(User user);

    List<String> findPermissionsByRoleId(Integer roleId);

    SimpleAuthenticationInfo info(ShiroUser shiroUser, User user, String realmName);

}
